package com.qinhailin.common.model;

import java.sql.Timestamp;

/**
 * <p>主表(类) 基类</p>
 * <p>要求数据表要有sID, sCreateTime, sLastUpdate, sVersion这4个栏位!</p>
 * <p>最后审核:2019-10-17</p>
 * <p>最后审核:2019-11-18</p>
 * @author harrydeep@wardyan.top
 */

@SuppressWarnings("unchecked")
public abstract class BaseERPMasterModel<T extends BaseERPMasterModel<T>> extends BaseModel<T> {
	
	


	@Override
	public String primaryKey() {
		return "sID";
	}



	public T setSID(Integer sID) {
		this.set("sID", sID);
		return (T) this;
	}
	
	public Integer getSID() {
		return this.getInt("sID");
	}
	
	public T setSCreateDate(Timestamp sCreateDate) {
		this.set("sCreateDate", sCreateDate);
		return (T) this;
	}
	
	public Timestamp getSCreateDate() {
		return this.getTimestamp("sCreateDate");
	}
	
	public T setSLastUpdate(Timestamp sLastUpdate) {
		this.set("sLastUpdate", sLastUpdate);
		return (T) this;
	}
	
	public Timestamp getSLastUpdate() {
		return this.getTimestamp("sLastUpdate");
	}
	
	public T setSVerNo(Integer sVerNo) {
		this.set("sVerNo", sVerNo);
		return (T) this;
	}
	
	public Integer getSVerNo() {
		return this.getInt("sVerNo");
	}

	
	public T setSStatus(Integer sStatus) {
		this.set("sStatus", sStatus);
		return (T) this;
	}
	
	public Integer getSStatus() {
		return this.getInt("sStatus");
	}


	public T setSOwner(String sOwner) {
		set("sOwner", sOwner);
		return (T)this;
	}
	
	public String getSOwner() {
		return getStr("sOwner");
	}
	
	
	public T setSMender(String sMender) {
		set("sMender", sMender);
		return (T)this;
	}
	
	public String getSMender() {
		return getStr("sMender");
	}

	public T setSChecker(String sChecker) {
		set("sChecker", sChecker);
		return (T)this;
	}
	
	public String getSChecker() {
		return getStr("sChecker");
	}
	
	public T setSAuditor(String sAuditor) {
		set("sAuditor", sAuditor);
		return (T)this;
	}
	
	public String getSAuditor() {
		return getStr("sAuditor");
	}
	
	
	
	
}
